-
-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
335 remove aliases from package index #569
Conversation
Code Coverage Summary
Diff against main
Results for commit: bc81ccb Minimum allowed coverage is ♻️ This comment has been updated with latest results |
What if |
Then no changes are made
|
I would like this solution if |
Maybe for |
I am afraid that this would make it working only for subset of users. To my surprise, centrally managed environments is quite popular in the pharma world - even internally we have a BEE environment managed like that. Is this really the only way to address this problem? Can it be done with modification of roxygen tags? Maybe we can slightly change the approach of documentation to obey this issue? Just thinking loudly... |
Check this out: EDIT: my mistake |
I actually like the idea, if this plays with |
|
Be my guest. |
I tried to avoid going deeper if possible. I need to focus on something else at the current moment. I can do that but a little bit later. Just wanted to flag this out for you in case you are unaware. |
This seems to be a bug that was supposedly fixed in 2022. I will raise the issue again but even if they do fix it, I don't think they will do it soon. |
We are four days in, join us when you can 😉 |
Maybe we can run it with |
Good luck. |
Got it, how do you run it? Did you add |
Looks like promising path! |
@pawelru Re: file permissions, I forgot to mention that a package is test-loaded during installation and the index file is modified then. |
Unit Tests Summary 1 files 29 suites 23s ⏱️ Results for commit bc81ccb. ♻️ This comment has been updated with latest results. |
That's great to hear. It means that my concern is not valid and I no longer see any blockers. However, I do encourage you to continue with looking for alternatives and do compare different approaches. I personally would prefer a fix to be incorporated in the already built package compared to apply fix on install. That's of course as long as it is possible. Now I cannot say it's buggy or incorrect. It's just non-standard and I am afraid that I am just unable to assess all possible outcomes or edge-cases. Why do I care? Non-standard ways of working introduce some difficulty and requires some/deep knowledge and generally speaking i do want to have a low and cheap maintenance code. I really hope you know what I am mean. I know I am sitting on a very comfy reviewer position but I think that there is enough IQ points already there to came up with something good :) You are all clever folks and I believe in you 💪 |
False.
Believe me, I tried. This is the best I was able to come up with. See #568 for an inferior alternative. Now, is this bulletproof? I don't know. For example, my way of dropping rows from the HTML file is rather primitive and makes some assumptions. But here we are. |
Ahhh I knew you will find something in my statement :) I really tried my best! Let me correct myself. That statement should go as follows Out of 26k+ packages on CRAN, only 16 are accessing Anyway, that's just to show why I think it's non-standard. I will try to have a look at this but in the middle of next week the earliest. |
Fair 😃 One of the reasons it is rarely accessed is it does not exist in the source. I agree, it is nonstandard. |
I just came across this: r-lib/xml2#437
A topic of compilation for WASM binaries. We are not doing right now but I this is something that I really want to (still to be prioritised). Such non-standard fix-on-install type of activities might create a lot of issues down the way. |
I don't think it is relevant. |
Fixes #335
Package index is built during the installation process but only once the package has been actually installed.
A file is created,
<package>/html/00Index.html
, that is the source for the index page.Here, a function is added that modifies
html/00Index.html
to remove HTML elements that link to a specified topic through aliases.The function is called in the loading hook.
@keywords internal
is removed from all functions that are included inteal_slice
,teal_slices
, andfilter_state_api
.